//
//  LoginViewController.h
//  iDashan
//
//  Created by Huahang Liu on 10/16/09.
//  Copyright 2009 University of Southern California. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LoginViewController;

@protocol LoginViewControllerDelegate <NSObject>

@optional

- (void)loginViewController:(LoginViewController*)controller didFinishLoginWithInfo:(NSDictionary*)loginInfo;

@end

@interface LoginViewController : UIViewController <UITextFieldDelegate> {
    id <LoginViewControllerDelegate> delegate;

    IBOutlet id loginButton;
    IBOutlet id usernameField;
}

@property (nonatomic, assign) id <LoginViewControllerDelegate> delegate;

- (IBAction)login:(id)sender;

@end
